package cn.glc.daily.life.infrastructure.repository.mysql;

import cn.glc.daily.life.common.utils.SpringUtils;

/**
 * mysql - 静态类
 *
 * @author simon
 * @date 2020/9/27 16:05
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
public class MysqlRepositories {
    public static final UserRepository userRepository;
    public static final UserAuthsRepository userAuthsRepository;
    public static final UserInfoRepository userInfoRepository;
    public static final UserRoleRepository userRoleRepository;
    public static final RolePermissionRepository rolePermissionRepository;
    public static final DictRepository dictRepository;
    public static final UserTaskRepository userTaskRepository;
    public static final TemplateRepository templateRepository;

    static {
        userRepository = SpringUtils.getBean(UserRepository.class);
        userAuthsRepository = SpringUtils.getBean(UserAuthsRepository.class);
        userInfoRepository = SpringUtils.getBean(UserInfoRepository.class);
        userRoleRepository = SpringUtils.getBean(UserRoleRepository.class);
        rolePermissionRepository = SpringUtils.getBean(RolePermissionRepository.class);
        dictRepository = SpringUtils.getBean(DictRepository.class);
        userTaskRepository = SpringUtils.getBean(UserTaskRepository.class);
        templateRepository = SpringUtils.getBean(TemplateRepository.class);
    }
}
